package chapter1_orignal;

public abstract class Price {
	abstract int getPriceCode();
	
	abstract double getCharge(int daysRented);
	
	int getFrequentRenterPoints(int daysRented) {
		if ((getPriceCode() == Movie.NEW_RELESASE) 
				&& daysRented > 1)
			return 2;
		else
			return 1;
	}
}
